<?php

/**
 * @author tuannguyen2042
 * @copyright 2014
 */

foreach($childCats as $category):
  $category_name = trim($category['Category']['name']);
?>

  <li>
    <input type="checkbox" onclick="filterListings()" name="cat<?php echo $category['Category']['id']; ?>" value="<?php echo $category['Category']['id']; ?>" style="margin-top:3px;" />
    <a href="javascript:void(0)" onclick="loadChildCats(<?php echo $category['Category']['id'].','.$locId; ?>)"><?php echo $category_name; ?></a>
    <ul class="childCat" id="childcats<?php echo $category['Category']['id']; ?>" style="display:none;"></ul>
  </li>


<?php endforeach; ?>